package com.kandinfo.isbnmanage.domian;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

import com.kandinfo.base.admin.domain.BaseDomain;

/**
 * 
 * 作业本表
 * 
 * @author qiweiyang
 *
 */
@Entity
@Table(name = "homework")
public class Homework extends BaseDomain implements Serializable {
	
	private static final long serialVersionUID = 6688207409297420927L;

	@Column(name = "name")
	private String name;
	
	@Column(name = "type")
	private String type;
	
	@Column(name = "grade")
	private Long grade;
	
	@Column(name = "subject")
	private Long subject;
	
	@Column(name = "subject_name")
	private String subjectName;
	
	@Column(name = "term")
	private String term;
	
	@Column(name = "edition")
	private String edition;
	
	@Column(name = "cover_image_url")
	private String coverImageUrl;
	
	@Column(name = "has_anwser")
	private String hasAnswer;
	
	@Column(name = "status")
	private String status;
	
	@Column(name = "comments")
	private String comments;
	
	@Column(name = "press")
	private String press;
	
	@Column(name = "time")
	private String time;
	
	@Column(name = "revision")
	private String revision;
	
    @Column(name = "validation")
    private String validation;
    
    @Column(name = "sort_ts")
    @Temporal(TemporalType.TIMESTAMP)
    private Date sortTs;
    
    @Column(name = "barcode")
    private String barcode;
    
    @Column(name = "is_default")
    private String isDefault;

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public Long getGrade() {
		return grade;
	}

	public void setGrade(Long grade) {
		this.grade = grade;
	}

	public Long getSubject() {
		return subject;
	}

	public void setSubject(Long subject) {
		this.subject = subject;
	}

	public String getSubjectName() {
		return subjectName;
	}

	public void setSubjectName(String subjectName) {
		this.subjectName = subjectName;
	}

	public String getTerm() {
		return term;
	}

	public void setTerm(String term) {
		this.term = term;
	}

	public String getEdition() {
		return edition;
	}

	public void setEdition(String edition) {
		this.edition = edition;
	}

	public String getCoverImageUrl() {
		return coverImageUrl;
	}

	public void setCoverImageUrl(String coverImageUrl) {
		this.coverImageUrl = coverImageUrl;
	}

	public String getHasAnswer() {
		return hasAnswer;
	}

	public void setHasAnswer(String hasAnswer) {
		this.hasAnswer = hasAnswer;
	}

	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	public String getComments() {
		return comments;
	}

	public void setComments(String comments) {
		this.comments = comments;
	}

	public String getPress() {
		return press;
	}

	public void setPress(String press) {
		this.press = press;
	}

	public String getTime() {
		return time;
	}

	public void setTime(String time) {
		this.time = time;
	}

	public String getRevision() {
		return revision;
	}

	public void setRevision(String revision) {
		this.revision = revision;
	}

	public String getValidation() {
		return validation;
	}

	public void setValidation(String validation) {
		this.validation = validation;
	}

	public Date getSortTs() {
		return sortTs;
	}

	public void setSortTs(Date sortTs) {
		this.sortTs = sortTs;
	}

	public String getBarcode() {
		return barcode;
	}

	public void setBarcode(String barcode) {
		this.barcode = barcode;
	}

	public String getIsDefault() {
		return isDefault;
	}

	public void setIsDefault(String isDefault) {
		this.isDefault = isDefault;
	}

}
